package doantotnghiep.business;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import doantotnghiep.dao.MeasureUnitDao;
import doantotnghiep.model.MeasureUnit;

public class MeasureUnitBusiness {

	@Autowired
	private MeasureUnitDao measureUnitDao; 
	
	public List<MeasureUnit> getlistMeasureUnit() {
		return measureUnitDao.getlistMeasureUnit();
	}

	public void addMeasure(MeasureUnit measureUnit) {
		measureUnitDao.addMeasure(measureUnit);	
	}

	public MeasureUnit getMeasureById(int id) {
		return measureUnitDao.getMeasureById(id);
	}

	public void saveMeaSure(MeasureUnit measureUnit) {
		measureUnitDao.saveMeaSure(measureUnit);
	}

	public void deleteMeasure(int id) {
		measureUnitDao.deleteMeasure(id);
	}

}
